<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>JCVP updater</title>
		<link rel="icon" href="/img/favicon.ico" type="image/x-icon">
		<link href="/css/cam_page.css" rel="stylesheet">
		<script src="/js/cam_page.js"></script>
	</head>

	<body onload="on_page_load()">
		<div class="container">
			<div class="jc_window">
				<p class="jc_bar_title">相机信息:</p>
				<label for="jc_cam_uart" style="padding-left:4px; padding-right:2px;">接口名:</label>
				<input class="fsm_inputs" id="jc_cam_uart" name="jc_cam_uart" type="text" required placeholder="/dev/ttyS17">
				<label for="jc_cam_name" style="padding-left:4px; padding-right:2px;">相机名:</label>
				<input class="fsm_inputs" id="jc_cam_name" name="jc_cam_name" type="text" required placeholder="/dev/ttyS17">
				<label for="jc_cam_buadrate" style="padding-left:4px; padding-right:2px;">波特率:</label>
				<input class="fsm_inputs" id="jc_cam_buadrate" name="jc_cam_buadrate" type="text" oninput="value=value.replace(/[^-?\d*\.?\d+$]/g, '')" required placeholder="9600">
				<button id="jc_cam_init" class="jc_buttons" style="margin-left:3px; margin-top:5px;" onclick="on_jc_cam_init()">connect</button><br><br>

				<p class="jc_bar_title">相机配置:</p>
				<!--Image size-->
				<label for="jc_image_width" style="padding-left:4px; padding-right:2px;">ImageWidth:</label>
				<input class="fsm_inputs" id="jc_image_width" name="jc_image_width" type="text" oninput="value=value.replace(/[^-?\d*\.?\d+$]/g, '')" required placeholder="1920">
				<label id="js_image_width" for="jc_image_width" style="display: inline-block; width:60px;">0000</label>
				<label for="jc_image_height" style="padding-left:4px; padding-right:2px;">ImageHeight:</label>
				<input class="fsm_inputs" id="jc_image_height" name="jc_image_height" type="text" oninput="value=value.replace(/[^-?\d*\.?\d+$]/g, '')" required placeholder="1920">
				<label id="js_image_height" for="jc_image_height" style="display: inline-block; height:60px;">0000</label>
				<button id="jc_image_size_set" class="jc_buttons" style="margin-left:3px; margin-top:5px;" onclick="jc_image_size_set()">set</button><br><br>
				<!--Window offset-->

			</div>
		</div>
		<hr>
	</body>
</html>

